//
//  HeaderCollectionViewCell.m
//  TermOfSectionB
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#import "HeaderCollectionViewCell.h"

@implementation HeaderCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.heightLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 40)];
        [self.contentView addSubview:self.heightLabel];
        
        [self.heightLabel makeConstraints:^(MASConstraintMaker *make) {
            
            make.edges.equalTo(self.contentView);
            
        }];
        
//        self.heightLabel.backgroundColor = [UIColor redColor];
        self.heightLabel.textColor = [UIColor colorWithRed:0.263f green:0.263f blue:0.263f alpha:1.00f];
        self.heightLabel.textAlignment = NSTextAlignmentCenter;
        
        self.longLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 30, 80, 1)];
        [self.contentView addSubview:self.longLabel];
        
        [self.longLabel makeConstraints:^(MASConstraintMaker *make) {
            
            Top(self.contentView.top, 33);
            Left(self.contentView.left, 0);
            Right(self.contentView.right, 0);
            Bottom(self.contentView.bottom, 0);
            
            
        }];
        self.longLabel.backgroundColor = [UIColor colorWithRed:0.784 green:0.518 blue:0.000 alpha:1.00];
    }
    return self;
}

@end
